#include <vector>
#include <iostream>
using namespace std;

class Solution {
public:
    vector<int> shuffle(vector<int>& nums, int n) {
        vector<int> ans;
        int i = 0, j = n;
        while (i < n)
        {
            ans.push_back(nums[i]);
            ans.push_back(nums[j]);
            i++, j++;
        }
        return ans;
    }
};

int main() {
    Solution sol;
    
    // 测试用例 1
    vector<int> nums1 = {2,5,1,3,4,7};
    int n1 = 3;
    vector<int> res1 = sol.shuffle(nums1, n1);
    cout << "Test Case 1: ";
    for(int num : res1) cout << num << " ";
    cout << endl;

    // 测试用例 2
    vector<int> nums2 = {1,2,3,4,5,6,7,8};
    int n2 = 4;
    vector<int> res2 = sol.shuffle(nums2, n2);
    cout << "Test Case 2: ";
    for(int num : res2) cout << num << " ";
    cout << endl;

    // 测试用例 3
    vector<int> nums3 = {1,2};
    int n3 = 1;
    vector<int> res3 = sol.shuffle(nums3, n3);
    cout << "Test Case 3: ";
    for(int num : res3) cout << num << " ";
    cout << endl;

    // 测试用例 4（全部相同）
    vector<int> nums4 = {5,5,5,5};
    int n4 = 2;
    vector<int> res4 = sol.shuffle(nums4, n4);
    cout << "Test Case 4: ";
    for(int num : res4) cout << num << " ";
    cout << endl;

    // 测试用例 5（全是零）
    vector<int> nums5 = {0,0,0,0,0,0};
    int n5 = 3;
    vector<int> res5 = sol.shuffle(nums5, n5);
    cout << "Test Case 5: ";
    for(int num : res5) cout << num << " ";
    cout << endl;

    return 0;
}